var e = require("../../../../@babel/runtime/helpers/defineProperty"), t = require("../../common").getCustomerService;

Component({
    properties: {},
    data: {
        displayCustomerServicePopup: !1,
        customerService: {
            customer_open: !1,
            online: "",
            service_QRcode: "",
            service_mobile: ""
        }
    },
    lifetimes: {
        ready: function() {
            var r = this;
            t().then(function(t) {
                "string" == typeof t ? r.setData(e({}, "customerService.online", t)) : r.setData({
                    customerService: t
                });
            });
        }
    },
    methods: {
        showCustomerServicePopup: function() {
            this.setData({
                displayCustomerServicePopup: !this.data.displayCustomerServicePopup
            });
        }
    }
});